package day12_thread_code.com.itheima.d3_thread_safe;

public class DrawThread extends Thread{
    private Account acc;
    public DrawThread(String name, Account acc){
        super(name);
        this.acc = acc;
    }

    @Override
    public void run() {
        acc.drawMoney(10000);
    }
}
